import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Item {
    id: setZeroWindow
    width: 1900
    height: 920

    Component.onCompleted: {
        Cpp_PLC.enter_SetZero_Window();
    }

    Component.onDestruction: {
        Cpp_PLC.write_into_tcp_Hold16(6168,"0")
    }

    NumberKeyboard{
        id: setZeroKeyboard
        isDirectOverwrite: false // 关闭直接覆盖
    }

    property real rectangleCount: 17
    property real firstRectWidth: 0
    property real remainingWidth : width-firstRectWidth
    property real otherRectWidth: remainingWidth /(rectangleCount-1)
    property real rectHeight: 490
    property real labelFontSize: 28
    property string labelColor: "aqua"

    Rectangle{
        anchors.fill: parent
        radius: 5
        // //border.width: 1
        // border.color: "black"
        color: "#87CEEB"

    }

    Row{
        anchors.horizontalCenter: setZeroWindow.horizontalCenter
        anchors.top: setZeroWindow.top
        anchors.topMargin: 5

        Rectangle{      // 标题列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#87ceeb"

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{width: 110 ; height: 40 ; color:"transparent";
                    Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("当前位置")}}
                Rectangle{width: 110 ; height: 40 ; color:"transparent";
                    Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("零点位置")}}
                Rectangle{width: 110 ; height: 40 ; color:"transparent";
                    Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("零点补偿")}}
                Rectangle{width: 110 ; height: 40 ; color:"transparent";
                    Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("寸动距离")}}
                Rectangle{width: 110 ; height: 40 ; color:"transparent";
                    Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("上升/前进")}}
                Rectangle{width: 110 ; height: 40 ; color:"transparent";
                    Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("下降/后退")}}
                Rectangle{width: 110 ; height: 40 ; color:"transparent";
                    Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("设零点")}}
                Rectangle{width: 110 ; height: 40 ; color:"transparent";
                    Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("回   零")}}
            }


        }
        Rectangle{      // 工进1 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#4169E1"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("工进1")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.Entry_1_CurrLoc;}
                }

                NumberInput{        // 工进1_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.Entry_1_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5212,value);
                    }
                }
                NumberInput{        // 工进1_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.Entry_1_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5216,value);
                    }
                }
                NumberInput{        // 工进1_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.Entry_1_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5668,value);
                    }
                }

                A_Button{       // 工进1_前进按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("前进")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5824,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5824,0)
                }
                A_Button{       // 工进1_后退按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("后退")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5864,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5864,0)
                }
                A_Button{       //  工进1_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5984,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5984,0)
                }
                A_Button{       //  工进1_回零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回 零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5944,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5944,0)
                }
            }
        }
        Rectangle{      // 工进2 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#4169E1"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("工进2")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.Entry_2_CurrLoc;}
                }
                NumberInput{        // 工进2_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.Entry_2_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5312,value);
                    }
                }
                NumberInput{        // 工进2_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.Entry_2_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5316,value);
                    }
                }
                NumberInput{        // 工进2_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.Entry_2_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5672,value);
                    }
                }
                A_Button{           // 工进2_前进按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("前进")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5826,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5826,0)
                }
                A_Button{           // 工进2_后退按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("后退")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5866,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5866,0)
                }
                A_Button{           // 工进2_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5986,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5986,0)
                }
                A_Button{           // 工进2_回零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回 零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5946,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5946,0)
                }
            }
        }

        Rectangle{      // 压辊 手动操作列
            width: otherRectWidth
            height: rectHeight
            border.width: 1
            color: "#6A5ACD"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("压辊")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.Idler_CurrLoc;}
                }
                NumberInput{        // 压辊_原点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.Idler_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5412,value);
                    }
                }
                NumberInput{        // 压辊_原点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.Idler_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5416,value);
                    }
                }
                NumberInput{        // 压辊_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.Idler_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5676,value);
                    }
                }

                A_Button{           // 压辊_上升按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("上升")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5828,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5828,0)
                }
                A_Button{           // 压辊_下降按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("下降")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5868,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5868,0)
                }
                A_Button{           // 压辊_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5988,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5988,0)
                }
                A_Button{           // 压辊_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5948,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5948,0)
                }
            }
        }


        Rectangle{      // 前上刀1辅助工进 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#98FB98"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("前上进1")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.FU_knife_1_A_E_CurrLoc;}
                }
                NumberInput{        // 前上1刀辅助工进_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4212,value);
                    }
                }
                NumberInput{        // 前上1刀辅助工进_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4216,value);
                    }
                }
                NumberInput{        // 前上1刀辅助工进_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5628,value);
                    }
                }
                A_Button{           // 前上1刀辅助工进_前进按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("前进")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5804,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5804,0)
                }
                A_Button{           // 前上1刀辅助工进_后退按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("后退")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5844,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5844,0)
                }
                A_Button{            // 前上1刀辅助工进_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5964,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5964,0)
                }
                A_Button{            // 前上1刀辅助工进_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5924,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5924,0)
                }
            }
        }

        Rectangle{      // 前上刀2辅助工进 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#98FB98"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("前上进2")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.FU_knife_2_A_E_CurrLoc;}
                }
                NumberInput{        // 前上2刀辅助工进_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4312,value);
                    }
                }
                NumberInput{        // 前上2刀辅助工进_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4316,value);
                    }
                }
                NumberInput{        // 前上2刀辅助工进_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5632,value);
                    }
                }
                A_Button{           // 前上2刀辅助工进_前进按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("前进")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5806,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5806,0)
                }
                A_Button{           // 前上2刀辅助工进_后退按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("后退")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5846,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5846,0)
                }
                A_Button{           //前上2刀辅助工进_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5966,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5966,0)
                }
                A_Button{           //前上2刀辅助工进_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5926,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5926,0)
                }
            }
        }

        Rectangle{      // 后上1辅助工进 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#FF6347"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("后上1进")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.BU_knife_1_A_E_CurrLoc;}
                }
                NumberInput{        // 后上1辅助工进_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4612,value);
                    }
                }
                NumberInput{        // 后上1辅助工进_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4616,value);
                    }
                }
                NumberInput{        // 后上1辅助工进_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5644,value);
                    }
                }
                A_Button{           // 后上1辅助工进_前进按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("前进")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5812,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5812,0)
                }
                A_Button{           // 后上1辅助工进_后退按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("后退")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5852,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5852,0)
                }
                A_Button{           //后上1辅助工进_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5972,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5972,0)
                }
                A_Button{           //后上1辅助工进_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5932,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5932,0)
                }
            }
        }

        Rectangle{      // 后上2辅助工进 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#FF6347"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("后上2进")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.BU_knife_2_A_E_CurrLoc;}
                }
                NumberInput{        // 后上2辅助工进_原点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4712,value);
                    }
                }
                NumberInput{        // 后上2辅助工进_原点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4716,value);
                    }
                }
                NumberInput{        // 后上2辅助工进_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5648,value);
                    }
                }
                A_Button{           // 后上2辅助工进_前进按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("前进")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5814,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5814,0)
                }
                A_Button{           // 后上2辅助工进_后退按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("后退")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5854,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5854,0)
                }
                A_Button{           // 后上2辅助工进_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5974,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5974,0)
                }
                A_Button{           // 后上2辅助工进_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5934,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5934,0)
                }
            }
        }

        Rectangle{      // 前上刀1 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#40E0D0"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("前上1")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.FU_knife_1_CurrLoc;}
                }
                NumberInput{        // 前上1刀盘_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_1_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4012,value);
                    }
                }
                NumberInput{        // 前上1刀盘_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_1_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4016,value);
                    }
                }
                NumberInput{        // 前上1刀盘_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_1_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5620,value);
                    }
                }
                A_Button{           // 前上1刀盘_上升按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("上升")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5800,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5800,0)
                }
                A_Button{           // 前上1刀盘_下降按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("下降")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5840,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5840,0)
                }
                A_Button{           // 前上1刀盘_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5960,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5960,0)
                }
                A_Button{           // 前上1刀盘_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5920,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5920,0)
                }
            }
        }

        Rectangle{      // 前上刀2 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#40E0D0"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("前上2")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.FU_knife_2_CurrLoc;}
                }
                NumberInput{        // 前上2刀盘_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_2_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4112,value);
                    }
                }
                NumberInput{        // 前上2刀盘_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_2_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4116,value);
                    }
                }
                NumberInput{        // 前上2刀盘_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FU_knife_2_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5624,value);
                    }
                }
                A_Button{           // 前上2刀盘_上升按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("上升")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5802,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5802,0)
                }
                A_Button{           // 前上2刀盘_下降按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("下降")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5842,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5842,0)
                }
                A_Button{           // 前上2刀盘_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5962,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5962,0)
                }
                A_Button{           // 前上2刀盘_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5922,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5922,0)
                }
            }
        }

        Rectangle{      // 后上刀1 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#40E0D0"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("后上1")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.BU_knife_1_CurrLoc;}
                }
                NumberInput{        // 后上1刀盘_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_1_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4412,value);
                    }
                }
                NumberInput{        // 后上1刀盘_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_1_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4416,value);
                    }
                }
                NumberInput{        // 后上1刀盘_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_1_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5636,value);
                    }
                }
                A_Button{           // 后上1刀盘_上升按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("上升")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5808,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5808,0)
                }
                A_Button{           // 后上1刀盘_下降按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("下降")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5848,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5848,0)
                }
                A_Button{           // 后上1刀盘_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5968,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5968,0)
                }
                A_Button{           // 后上1刀盘_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5928,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5928,0)
                }
            }
        }

        Rectangle{      // 后上刀2 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#40E0D0"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("后上2")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.BU_knife_2_CurrLoc;}
                }
                NumberInput{        // 后上2刀盘_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_2_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4512,value);
                    }
                }
                NumberInput{        // 后上2刀盘_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_2_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4516,value);
                    }
                }
                NumberInput{        // 后上2刀盘_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BU_knife_2_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5640,value);
                    }
                }
                A_Button{           // 后上2刀盘_上升按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("上升")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5810,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5810,0)
                }
                A_Button{           // 后上2刀盘_下降按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("下降")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5850,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5850,0)
                }
                A_Button{           // 后上2刀盘_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5970,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5970,0)
                }
                A_Button{           // 后上2刀盘_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5930,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5930,0)
                }
            }
        }

        Rectangle{      // 前下刀1 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#7FFFAA"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("前下1")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.FD_knife_1_CurrLoc;}
                }
                NumberInput{        // 前下1刀盘_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FD_knife_1_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4812,value);
                    }
                }
                NumberInput{        // 前下1刀盘_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FD_knife_1_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4816,value);
                    }
                }
                NumberInput{        // 前下1刀盘_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FD_knife_1_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5652,value);
                    }
                }
                A_Button{           // 前下1刀盘_上升按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("上升")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5816,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5816,0)
                }
                A_Button{           // 前下1刀盘_下降按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("下降")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5856,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5856,0)
                }
                A_Button{           // 前下1刀盘_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5976,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5976,0)
                }
                A_Button{           // 前下1刀盘_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5936,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5936,0)
                }
            }
        }

        Rectangle{      // 前下刀2 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#7FFFAA"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("前下2")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.FD_knife_2_CurrLoc;}
                }
                NumberInput{        // 前下2刀盘_原点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FD_knife_2_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4912,value);
                    }
                }
                NumberInput{        // 前下2刀盘_原点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FD_knife_2_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4916,value);
                    }
                }
                NumberInput{        // 前下2刀盘_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.FD_knife_2_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5656,value);
                    }
                }
                A_Button{           // 前下2刀盘_上升按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("上升")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5818,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5818,0)
                }
                A_Button{           // 前下2刀盘_下降按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("下降")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5858,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5858,0)
                }
                A_Button{           // 前下2刀盘_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5978,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5978,0)
                }
                A_Button{           // 前下2刀盘_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5938,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5938,0)
                }
            }
        }
        Rectangle{      // 后下刀1 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#7FFFAA"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("后下1")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.BD_knife_1_CurrLoc;}
                }
                NumberInput{        // 后下1刀盘_零点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BD_knife_1_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5012,value);
                    }
                }
                NumberInput{        // 后下1刀盘_零点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BD_knife_1_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5016,value);
                    }
                }
                NumberInput{        // 后下1刀盘_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BD_knife_1_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5660,value);
                    }
                }
                A_Button{           // 后下1刀盘_上升按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("上升")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5820,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5820,0)
                }
                A_Button{           // 后下1刀盘_下降按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("下降")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5860,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5860,0)
                }
                A_Button{           // 后下1刀盘_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5980,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5980,0)
                }
                A_Button{           // 后下1刀盘_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5940,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5940,0)
                }
            }
        }

        Rectangle{      // 后下刀2 手动操作列
            width: otherRectWidth
            height: rectHeight
            // border.width: 1
            color: "#7FFFAA"

            Rectangle{width: 110 ; height: 40 ; color:"transparent";
                anchors.top: parent.top ;//anchors.topMargin: 45 ;
                anchors.horizontalCenter: parent.horizontalCenter
                Text{anchors.centerIn: parent; font.pixelSize: labelFontSize;text:qsTr("后下2")}}

            Column{
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                anchors.topMargin: 50
                spacing: 15

                Rectangle{
                    width: 110;height: 40;border.width: 3;radius: 5;border.color: "white";color: "black";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: labelColor;
                        text: Cpp_PLC.BD_knife_2_CurrLoc;}
                }
                NumberInput{        // 后下2刀盘_原点位置
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BD_knife_2_ZP
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5112,value);
                    }
                }
                NumberInput{        // 后下2刀盘_原点补偿
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BD_knife_2_ZOC
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5116,value);
                    }
                }
                NumberInput{        // 后下2刀盘_寸动距离
                    inputWidth: 110
                    inputHeight: 40
                    keyboard: setZeroKeyboard
                    text: Cpp_PLC.BD_knife_2_PM
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5664,value);
                    }
                }
                A_Button{           // 后下2刀盘_上升按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("上升")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5822,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5822,0)
                }
                A_Button{           // 后下2刀盘_下降按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("下降")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5862,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5862,0)
                }
                A_Button{           // 后下2刀盘_设零点按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("设零点")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5982,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5982,0)
                }
                A_Button{           // 后下2刀盘_回零按钮
                    buttonWidth: 110
                    buttonHeight: 40
                    contentText_Data : qsTr("回  零")
                    onButtonPressed: Cpp_PLC.write_into_tcp_Hold16(5942,1)
                    onButtonReleased: Cpp_PLC.write_into_tcp_Hold16(5942,0)
                }
            }
        }    
    }

    A_CheckBox{
        text: qsTr("连续模式")
        anchors.left: parent.left
        anchors.leftMargin: 130
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 130
        fontSize: 30
        spacing: 15
        onToggled : function(value) {
            if(value)
            {
                text = qsTr("寸动模式")
                Cpp_PLC.write_into_tcp_Hold16(6168,"1")
            }
            else
            {
                text = qsTr("连续模式")
                Cpp_PLC.write_into_tcp_Hold16(6168,"0")
            }
        }
    }
}
